package com.vic.designpattern.principle.ocp.demo1;

/**
 * 开闭原则（Open Closed Principle）
 *
 * 新加的主题只需要继承 AbstractSubject 即可。
 *
 * 参考文章
 * http://c.biancheng.net/view/1322.html
 *
 * @author victor
 */
public class Client {

    public static void main(String[] args) {
        Windows w = new Windows();
        w.display(new SeaSubject());
        w.display(new MountainSubject());
    }
}
